/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1schoolclassdemo;

/**
 *
 * @author apple
 */
public class Student {
    private String name;
    private int num;
    private int javaScore;

    public Student() {
    }

    public Student(String name, int num) {
        this.name = name;
        this.num = num;
    }

    public Student(String name, int num, int javaScore) {
        this.name = name;
        this.num = num;
        this.javaScore = javaScore;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getJavaScore() {
        return javaScore;
    }

    public void setJavaScore(int javaScore) {
        this.javaScore = javaScore;
    }
    
    public void show()
    {
        System.out.println(this.name+" ;"+this.num+" ;"+this.javaScore);
    }
}
